#-*-coding:utf-8-*-
import datetime
import time
import traceback
from pprint import pprint
from pymongo.connection import MongoClient

class MongoDb():
    def __init__(self):
        client = MongoClient('localhost',27017)
        self.db = client['gather']
        self.coll = self.db['dicts']

    def save(self,dict):
        self.coll.insert(dict)

    def clear(self):
        self.coll.remove()
